package com.atguigu.study;

import dev.langchain4j.model.chat.ChatModel;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Marco
 * @Description
 * @date 2025/8/15 22:09
 * @email 3293336923@qq.com
 */
@SpringBootApplication
public class HelloLangChain4JApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(HelloLangChain4JApp.class, args);
        ChatModel bean1 = ioc.getBean(ChatModel.class);
        ChatModel bean2 = ioc.getBean(ChatModel.class);


        System.out.println(bean2 == bean1);
    }
}
